Detect cyclic dependencies through [replace]
authorAlex Crichton <alex@alexcrichton.com>
Mon, 20 Mar 2017 19:43:44 +0000 (12:43 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 20 Mar 2017 19:46:17 +0000 (12:46 -0700)
commit2f66faf58791df4dbbbb46cf212e5d063941a9e8
tree6160e12c4742e16b5e4ecce896a1850b983243d8
parentbb1472e02d2384052348ff5ff2357be0ded9442d
Detect cyclic dependencies through [replace]

Previously this'd cause a stack overflow in Cargo later in the compilation
graph, but this is intended to get caught during resolution.

Closes #3831
src/cargo/core/resolver/mod.rs
tests/overrides.rs